<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('审批意见')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-requisitiones-edit" th:object="${materialsRequisitiones}">
        <input name="mMid" th:field="*{mMid}" type="hidden">
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">材料类型：</label>
            <div class="col-sm-8">
                <select id="matType" name="matTypes" class="form-control noselect2 selectpicker" type="text"></select>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">材料分类：</label>
            <div class="col-sm-8">
                <select  id="matClassification" name="matClassifications" class="form-control" type="text"></select>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">材料数据：</label>
            <div class="col-sm-8">
                <select  id="matData" name="matDatas" class="form-control" type="text"></select>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">材料详情：</label>
            <div class="col-sm-8">
                <select id="matDetails" name="matDetailss" class="form-control" type="text"></select>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">总览：</label>
            <div class="col-sm-8">
                <input id="a" name="a" class="form-control" type="text"></input>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">材料数量：</label>
            <div class="col-sm-8">
                <input id="matNumbers" name="matNumbers" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" hidden>
            <label class="col-sm-3 control-label">申请人：</label>
            <div class="col-sm-8">
                <input id="mPeoples" name="mPeoples" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">状态：</label>
            <div class="col-sm-8" style="display: none">
                <input name="mStatus" th:field="*{mStatus}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input id="mMtime" name="mMtime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">审批意见：</label>
            <div class="col-sm-8">
                <input id="mOpinions" name="mOpinions" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" hidden>
            <label class="col-sm-3 control-label">项目外键：</label>
            <div class="col-sm-8">
                <input id="mId" name="mId" class="form-control" type="text"  th:value="${pId}">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "ruoyi/requisitionesVerify";
    $("#form-requisitiones-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-requisitiones-edit').serialize());
        }
    }

    $("input[name='mMtime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>